<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<title>Insert title here</title>
</head>
<body>
	<div>

		<shiro:authenticated>  
	用户[<shiro:principal />]已身份验证通过  
</shiro:authenticated>
		<shiro:user>  
欢迎[<shiro:principal />]登录，<a href="logout">退出</a>
		</shiro:user>

 
		
		<h1>main</h1>
		<div>${ catalogs}</div>
		<div>
			<ul>
			<shiro:hasPermission name="member:edit">  
	用户[<shiro:principal />]拥有member:edit权限
</shiro:hasPermission>
<shiro:hasPermission name="member:add">  
	用户[<shiro:principal />]拥有member:add权限
</shiro:hasPermission>
				 
			</ul>

		</div>
	</div>
</body>
</html>